package com.guigu.qingcheng.sevice;

import com.guigu.qingcheng.pojo.vo.Goods;
import com.guigu.qingcheng.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-goods")
@Component
public interface GoodsServiceFeign {

    @GetMapping("/goods/goods/queryBySpuId/{spuId}")
    public Goods queryBySpuId(@PathVariable("spuId") String spuId);

    @GetMapping("/goods/category/detail/{id}")
    public R detail(@RequestParam Integer id);
}
